package cn.wen.eeayjoke.banner;

import android.content.Context;
import android.widget.ImageView;

import cn.wen.base.adapter.viewpager.QuickPagerHolder;
import cn.wen.base.image.ImageLoader;
import cn.wen.core.banner.BannerCreator;
import cn.wen.eeayjoke.R;
import cn.wen.eeayjoke.entity.bean.home.AdvBean;

/**
 * Banner的构建器
 */

public class QuickBannerCreator extends BannerCreator<AdvBean> {
    @Override
    protected void onBindData(QuickPagerHolder<AdvBean> holder, Context context, int position, final AdvBean advBean) {
        final ImageView view = holder.getView(R.id.iv_banner);
        ImageLoader.displayImage(view, advBean.adFile);
    }
}
